bitkeeper revision 1.1389.22.1 (4284f784wtIDAT1YhOkMEav5iPFY-w)
authorsmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Fri, 13 May 2005 18:52:52 +0000 (18:52 +0000)
committersmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Fri, 13 May 2005 18:52:52 +0000 (18:52 +0000)
allow repeated make uninstall

Signed-off-by: Steven Hand <steven@xensource.com>
Makefile

index 7e589f098c1f7671749750a9b9411ead6f9a2152..a86b15c2deb2dc65d4e82b2e8c22f262613202dc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -158,7 +158,8 @@ help:
 uninstall: DESTDIR=
 uninstall: D=$(DESTDIR)
 uninstall:
-       [ ! -d $(D)/etc/xen ] || mv -f $(D)/etc/xen $(D)/etc/xen.old
+       [ ! -d $(D)/etc/xen.old ] || mv -f $(D)/etc/xen $(D)/etc/xen.old
+       rm -rf $(D)/etc/xen
        rm -rf $(D)/etc/init.d/xend*
        rm -rf $(D)/usr/$(LIBDIR)/libxc* $(D)/usr/$(LIBDIR)/libxutil*
        rm -rf $(D)/usr/lib/python/xen $(D)/usr/include/xen